package com.xuetang9.service.al.impl;

import com.xuetang9.dao.WayMapper;
import com.xuetang9.domain.Way;
import com.xuetang9.dto.a.ListRequestDTO;
import com.xuetang9.service.WayService;
import com.xuetang9.vo.ListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : allende
 * @describe :修改路线和删除路线的实现
 * @date : 2020/5/13 12:09
 * vision : 1.0.0
 **/
@Service("WayServiceAl")
public class WayServiceImpl implements WayService {

    @Autowired
    private WayMapper wayMapper;

    /**
     * 删除路线实现方法
     * @param id 根据路线编号删除路线
     * @return 返回数据库结果
     */
    @Override
    public int deleteWay(int id) {
        return wayMapper.deleteWay(id);
    }


    @Override
    public ListVO selecWay(ListRequestDTO<Way> way) {
        return null;
    }
}
